﻿#Region "Copyright"
'————————————————————————————————————————
'	创建人员(Creator)    ：Huangyd
'	创建日期(Date)       ：2012-07-14
'   联系方式(Email)      ：aj-ayumi@163.com; gajayumi@gmail.com; ajayumi@me.com
'   描    述(Description)：
'
'	Copyright (C) 2012 ajayumi 版权所有
'————————————————————————————————————————
#End Region
Imports System.Runtime.InteropServices

Namespace WinAPI
    Public Class GDI32Dll
        <DllImport("gdi32.dll", setlasterror:=True)> _
        Public Shared Function CreateCompatibleDC(ByVal hdc As IntPtr) As IntPtr
        End Function

        <DllImport("gdi32.dll", setlasterror:=True)> _
        Public Shared Function CreateDIBSection(ByVal hdc As IntPtr, _
                                            ByRef pbmi As BITMAPINFOHEADER, _
                                            ByVal iUsage As UInteger, _
                                            ByRef ppvBits As IntPtr, _
                                            ByVal hSection As IntPtr, _
                                            ByVal dwOffset As UInteger) As IntPtr
        End Function

        <DllImport("gdi32.dll", ExactSpelling:=True, PreserveSig:=True, setlasterror:=True)> _
        Public Shared Function SelectObject(ByVal hdc As IntPtr, ByVal hgdiobj As IntPtr) As IntPtr
        End Function

        <DllImport("gdi32.dll")> _
        Public Shared Function DeleteDC(ByVal hdc As IntPtr) As Boolean
        End Function

        <DllImport("gdi32.dll")> _
        Public Shared Function DeleteObject(ByVal hObject As IntPtr) As Boolean
        End Function

        <DllImport("gdi32.dll", ExactSpelling:=True, SetLastError:=True)> _
        Public Shared Function ExtCreateRegion(ByVal lpXform As IntPtr, ByVal nCount As UInteger, ByVal rgnData As IntPtr) As IntPtr
        End Function


    End Class


End Namespace
